package com.ruoyi.web.milk;

/**
 * @Program: RuoYi-Vue-chy->Producer
 * @Description: 生产者 生产牛奶
 * @Author: hongyu.chen
 * @Date: 2025-03-07 15:25
 * @Version： 1.0
 **/
public class Producer implements Runnable{

    private Box box;

    public Producer(Box box) {
        this.box = box;
    }

    @Override
    public void run() {

        for (int i = 1; i <= 10; i++) {
            box.put(i);
        }

    }
}
